package com.naizhuai.ui.entity;

import com.google.gson.annotations.SerializedName;
import com.naizhuai.ui.task.multtype.TaskItem;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

/**
 * @author：lichenxi
 * @date 2018/4/10 16
 * email：525603977@qq.com
 * Fighting
 */
public class TaskListBean implements Serializable {

    @SerializedName("departmentTaskList")
    private List<TaskItem> departmentTaskList;
    @SerializedName("companyTaskList")
    private List<TaskItem> companyTaskList;

    @SerializedName("carousel")
    public List<NoticeAndBanner> bannerList;
    @SerializedName("vitalityIndex")
    public NoticeAndBanner vitality;

    public List<TaskItem> getAllTaskList(){
        ArrayList<TaskItem> arrayList=new ArrayList<>();
        arrayList.addAll(getDepartmentTaskList());
        arrayList.addAll(getCompanyTaskList());
        return  arrayList;
    }
    public List<TaskItem> getDepartmentTaskList() {
        return departmentTaskList;
    }

    public List<TaskItem> getCompanyTaskList() {
        return companyTaskList;
    }


    @Override
    public String toString() {
        return "TaskListBean{" +
                "departmentTaskList=" + departmentTaskList +
                ", companyTaskList=" + companyTaskList +
                '}';
    }
}
